package com.hhs.storage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hhs.storage.bean.BaseUser;
import com.hhs.storage.bean.InputParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hhs
 * @since 2018-09-29
 */
public interface BaseUserDao extends BaseMapper<BaseUser> {

    public List<BaseUser> getUsersByRoleFlag(@Param("flag") String flag);

    public List<BaseUser> queryCarCaptain(@Param("inputParam")InputParam inputParam);
    public Long totalCarCaptain(@Param("inputParam")InputParam inputParam);

    /**
     * @Author: HuangHaiShui
     * @Description:根据部门的相关参数，获取与部门相关的用户
     * @Date: 15:06 2023/1/13
     * @param inputParam: 目前仅用到属性 id ，部门的id
     * @return: List<BaseUser>
     **/
    public List<BaseUser> getUsersByDepart(InputParam inputParam);
    public Long totalUsersByDepart(InputParam inputParam);

    List<BaseUser> getUsersByRoleIds(@Param("roleList") List<String> roleList);

    List<BaseUser> getUsersByRoleFlagPage(@Param("inputParam") InputParam inputParam);

    Integer getUsersByRoleFlagPageCount(@Param("inputParam") InputParam inputParam);
}
